class NativeImageOptions {
  /// 图片要存储的目录名 必传
  final String directory;

  /// 是否上传到OSS 默认false
  final bool isOss;

  /// 是否使用原图 默认false(使用剪切图)
  final bool useOriginalImage;

  /// 要剪切的图片宽度
  final double? clippingWidth;

  /// 要剪切的图片高度
  final double? clippingHeight;

  const NativeImageOptions(
      {required this.directory,
      this.isOss = false,
      this.useOriginalImage = false,
      this.clippingWidth,
      this.clippingHeight});

  Map<String, dynamic> toMap() => {
        "directory": directory,
        "isOss": isOss,
        "useOriginalImage": useOriginalImage,
        "clippingWidth": clippingWidth,
        "clippingHeight": clippingHeight,
      };
}
